<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	request.setAttribute("path", request.getContextPath());
%>
<script type="text/javascript">
$(function(){
	common.ajaxQuery("${root}/app/user/query/pop");
});
function selectAll(obj){
	 $("#dataList input[id*='userItem']").each(function(){
			$(this).prop("checked",$(obj).prop("checked"));
	}); 
}
</script>
<form class="form-horizontal" id="queryForm" >
	   <input name="secondOrg" value="${secondOrg}" type="hidden">
		<table class="table table-hover">
			<tr>
				<th>账号:</th>
				<td><input type="text" class="input-medium" name="userId"/></td>
				<th>姓名:</th>
				<td><input type="text" class="input-medium" name="userName"/></td>
			</tr>
		</table>
		<div class="form-actions text-center">
		      <button type="button" class="btn btn-primary btn-sm" onclick="common.ajaxQuery('${root}/app/user/query/pop')">查询</button>
	 </div>
</form>
	<table class="table table-bordered table-condensed">
		<thead>
			<tr >
				<th class="span1 text-center">序号</th>
				<th class="span2 text-center">账号</th>
				<th class="text-center">姓名</th>
				<th class="span2 text-center">
					<label class="checkbox-inline">
						<input id="selectAll"  onclick="selectAll(this)"  type="checkbox" >
					</label>
				</th>
			</tr>
		</thead>
		<tbody id="dataList">
		</tbody>
	</table>
